<?php

/*
 * This file is part of the Geek-Zoo Projects.
 *
 * @copyright (c) 2010 Geek-Zoo Projects More info http://www.geek-zoo.com
 * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License
 * @author quqiang <quqiang@geek-zoo.com>
 *
 */
require ROOT_PATH.'/Helper/front_base_abstract.php';

class Action extends front_base_abstract{
    function index(){
        if (Request::isPost()) {
            $lang = $_SESSION['lang'];
            if ($lang && $lang=='zh') {
                $lang = 1;
            } else {
                $lang = 0;
            }

            if ($lang) {
               $info_o = _model('assets')->read(array('id'=>'24'));
            } else {
                $info_o = _model('assets')->read(array('id'=>'23'));
            }
            
            $info = array_filter(_POST('info', array()));
            $id = _model('business_input')->create($info);
            $this->view->assign('info', $info_o);
            
            if ($id) {
                $this->msg('succ', 'index');
            }
            
            
        }
    }
}



?>